import request from '@/utils/request'

// 查询信审规则配置列表
export function ruleList(query) {
  return request({
    url: '/creditReview/rule/list',
    method: 'get',
    params: query
  })
}

// 获取信审规则配置详细信息
export function ruleDetail(id) {
  return request({
    url: `/creditReview/rule/${id}`,
    method: 'get'
  })
}

// 新增信审规则配置
export function ruleAdd(data) {
  return request({
    url: '/creditReview/rule',
    method: 'post',
    data:data
  })
}

// 编辑信审规则配置
export function ruleUpdate(data) {
  return request({
    url: '/creditReview/rule',
    method: 'put',
    data:data
  })
}

// 启停用信审规则配置
export function ruleEditStatus(data) {
  return request({
    url: '/creditReview/rule/editStatus',
    method: 'put',
    data:data
  })
}


// 删除信审规则配置
export function ruleDelete(id) {
  return request({
    url: `/creditReview/rule/${id}`,
    method: 'delete'
  })
}




